/*
 * @Author: 火红色祥云 201926154@qq.com
 * @Date: 2025-02-03 20:21:28
 * @LastEditors: 火红色祥云 201926154@qq.com
 * @LastEditTime: 2025-02-03 20:21:44
 * @FilePath: \Project_ESP32C3\src\i2c\i2c.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma once

#include <Wire.h>

#define I2C_FREQ    100000 // 标准模式100kHz

class I2CComm {
public:
    I2CComm(uint8_t address);
    void begin();
    void sendData(uint8_t* data, size_t size);
    void end();
private:
    uint8_t _address;
};
